﻿<basics:ChildWindow xmlns:inputToolkit1="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit" 
                    xmlns:inputToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input" 
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" 
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" 
                    xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" 
                    xmlns:src="clr-namespace:ibba.src.norisk" 
                    xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows" 
                    xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" 
                    x:Class="ibba.src.norisk.PageGarantiaContratoExpExcel" 
                    HorizontalAlignment="Center" 
                    VerticalAlignment="Center" 
                    Height="280" 
                    Width="420" 
                    Title="Exportar" 
                    Background="#FF5C7590">

    <Grid x:Name="LayoutRoot" 
          Background="{x:Null}"  
          Height="260" 
          VerticalAlignment="Top" 
          HorizontalAlignment="Center" 
          Width="380" 
          Margin="0,-23,0,0" >

        <TextBlock x:Name="txbSubTitulo" 
                   Text="Selecionar abaixo as informações que deseja exportar" 
                   FontSize="10"
                   Foreground="#FFF2ECDA"
                   Margin="54,32,54,0" 
                   VerticalAlignment="Top" 
                   Width="auto" 
                   FontFamily="Verdana" 
                   d:LayoutOverrides="VerticalAlignment, Width"/>
        
        <Grid Height="115" 
              HorizontalAlignment="Center" 
              Margin="2,55,0,0" 
              VerticalAlignment="Top" 
              Width="334">
            
            <Border Background="#FF9AACB7" 
                    CornerRadius="10" 
                    Height="113" 
                    Margin="-15,0,-15,2" 
                    VerticalAlignment="Bottom" >
                
            	<TextBlock Height="25" 
                           Margin="60,18,60,0" 
                           VerticalAlignment="Top" 
                           Text="Exportar Parâmetros de Contrato:" 
                           TextWrapping="Wrap" 
                           Foreground="#FFF2ECDA" 
                           FontSize="12" 
                           FontWeight="Bold" />
            </Border>
            
            <TextBlock x:Name="tbParametro" 
                       Text="Parâmetro" 
                       FontSize="10" 
                       Foreground="#FFF2ECDA" 
                       Width="54" 
                       FontFamily="Verdana" 
                       Margin="4,70,0,0" 
                       TextWrapping="Wrap" 
                       HorizontalAlignment="Left" 
                       VerticalAlignment="Top" 
                       Height="17" />

            <ComboBox  x:Name="cboParametro" 
                       Margin="66,65,0,0" 
                       SelectedItem="{Binding Mode=OneWay, Path=IdTipoParametroGarantia}" 
                       SelectionChanged="cboParametro_SelectionChanged" 
                       DisplayMemberPath="DsTipoParametroGarantia" 
                       HorizontalAlignment="Left" 
                       Width="260" 
                       Height="22" 
                       VerticalAlignment="Top"/>

        </Grid>


        <Grid Height="40" 
              Margin="11,0,0,12" 
              VerticalAlignment="Bottom" 
              HorizontalAlignment="Left" 
              Width="277" >

            <Border Background="#FF9AACB7" 
                    CornerRadius="10" 
                    Margin="2,-1,-82,0" />
            
            <Button x:Name="btnFechar" 
                    Click="btnFechar_Click" 
                    Margin="220,7,-45,8">
                
                <StackPanel Orientation="Horizontal">
                    
                	<Image Source="../image/voltar.png" 
                           Height="28" 
                           Width="28" 
                           Margin="0,-14,0,0" 
                           Stretch="Uniform" 
                           VerticalAlignment="Center" 
                           HorizontalAlignment="Left" />
                    
                	<TextBlock Text="Cancelar" Margin="-2,0,0,0"/>
                    
                </StackPanel>
                
            </Button>

            <Button x:Name="btnExportarArquivo" 
                    Margin="43,7,135,8" 
                    Click="btnExportarArquivo_Click" >
                
            	<StackPanel Orientation="Horizontal" Width="90">
                    
            		<Image Source="../image/export.png" 
                           Height="16" 
                           Margin="2,0,0,0" />
                    
            		<TextBlock Text="Exportar" Margin="14,0,0,0"/>
                    
            	</StackPanel>
                
            </Button>

        </Grid>
    </Grid>
</basics:ChildWindow>
